<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<script type="text/javascript"
	src="${ctx}/pages/templete/js/validate/return_transfer.js"></script>


<form action="${ctx}/goods/returnTransfer/submit.do" id="return_transfer_form" name="return_transfer_form" method="post" target="_blank">
	<input type="hidden" value="${sessionScope.gopay_webtest_key}" name="verficationCode" id="verficationCode">
	<table width="100%">
		<tr>
			<td width="30%" align=right>版本号:</td>
			<td align=left width="45%">
				<select id="version" name="version">
					<option value="1.0" selected>1.0</option>
				</select>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right>交易代码:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="tranCode"
				name="tranCode" value="${goodsinfo.tranCode }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="tranCodeTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>商户ID:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="merchantID"
				name="merchantID" value="${goodsinfo.merchantID }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="merchantIDTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>订单号:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="merOrderNum"
				name="merOrderNum" value="${goodsinfo.merOrderNum }" size="50" />
			</td>
			<td width="25%" align=left> <font color=red>*</font><span id="merOrderNumTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>交易时间:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="tranDateTime"
				name="tranDateTime" value="<%=com.gopay.webtest.util.DateUtils.date2string(new java.util.Date(),com.gopay.webtest.util.DateUtils.DEFAULT_PATTERN ) %>" size="50" />
			</td>
			<td width="25%" align=left> <font color=red>*</font><span id="tranDateTimeTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>交易金额:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="tranAmt" name="tranAmt"
				value="${goodsinfo.tranAmt }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="tranAmtTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>原交易时间:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="orgtranDateTime"
				name="orgtranDateTime" value="${goodsinfo.orgtranDateTime }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="orgtranDateTimeTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>原订单号:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="orgOrderNum"
				name="orgOrderNum" value="${goodsinfo.orgOrderNum }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="orgOrderNumTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>原交易金额:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="orgtranAmt"
				name="orgtranAmt" value="${goodsinfo.orgtranAmt }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="orgtranAmtTip"></span></td>
		</tr>
		<!--退款转账新增参数 return transfer start-->
		<tr>
			<td width="30%" align=right>收款人银行开户名:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="recvBankAcctName"
											  name="recvBankAcctName" value="${goodsinfo.recvBankAcctName }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="recvBankAcctNameTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>收款方银行所在省份:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="recvBankProvince"
											  name="recvBankProvince" value="${goodsinfo.recvBankProvince }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="recvBankProvinceTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>收款方银行所在城市:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="recvBankCity"
											  name="recvBankCity" value="${goodsinfo.recvBankCity }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="recvBankCityTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>开户网点:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="recvBankBranchName"
											  name="recvBankBranchName" value="${goodsinfo.recvBankBranchName }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="recvBankBranchNameTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>收款方银行名称:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="recvBankName"
											  name="recvBankName" value="${goodsinfo.recvBankName }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="recvBankNameTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>收款方银行账号:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="recvBankAcctNum"
											  name="recvBankAcctNum" value="${goodsinfo.recvBankAcctNum }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="recvBankAcctNumTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>公私标识:</td>
			<td align=left width="45%">
				<input type="text" id="corpPersonFlag" name="corpPersonFlag" value="1" size="50"/>
			</td>
			<td width="25%" align=left>
				<font color=red>*</font>
				<span id="corpPersonFlagTip"></span>
			</td>
		</tr>
		<!--退款转账新增参数 return transfer end-->
		<tr>
			<td width="30%" align=right>商户URL:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="merURL" name="merURL"
				value="${goodsinfo.merURL }" size="50" />
			</td>
			<td width="25%" align=left> <span id="merURLTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>用户浏览器IP:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="tranIP" name="tranIP"
				value="${goodsinfo.tranIP }" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font> <span id="tranIPTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>附加信息:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="msgExt" name="msgExt"
				value="${goodsinfo.msgExt }" size="50" />
			</td>
			<td width="25%" align=left> <span id="msgExtTip"></span></td>
		</tr>
		<tr>
			<td width="30%" align=right>指定返回编码:&nbsp;&nbsp;</td>
			<td align=left width="45%"><input type="text" id="merchantEncode"
				name="merchantEncode" value="${goodsinfo.merchantEncode }" size="50" />
			</td>
			<td width="25%" align=left> <span id="merchantEncodeTip"></span></td>
		</tr>
		<tr>
			<td colspan=3>&nbsp;</td>
		</tr>
		<tr>
			<td colspan=3 width="100%">
			<center>
					<input type="button" name="def_button" id="def_button" value="设置默认值" >&nbsp;&nbsp;
					<input type="submit" name="submit" id="submit" value="开始测试" >
			</center>
			</td>
		</tr>

	</table>
</form>
<div style="display: none;">
	<img src="${ctx}/image/danbaochexiao.jpg" alt="" height="200px"></img>
</div>
